package Third;

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.print("ID:");
		String Id=sc.next();
		System.out.print("Balance:");
		double Balance=sc.nextFloat();
		System.out.print("Months:");
		int months=sc.nextInt();
		System.out.print("Rate:");
		double Rate=sc.nextFloat();
		Account a1=new TimeDepositAccount(Id,Balance,months,Rate);
		System.out.print(a1.toString());
		
		System.out.print("ID:");
		Id=sc.next();
		System.out.print("Balance:");
		Balance=sc.nextFloat();
		System.out.print("Days:");
		int days=sc.nextInt();
		System.out.print("Rate:");
		Rate=sc.nextFloat();
		Account a2=new ManageWealthAccount(Id,Balance,days,Rate);
		System.out.print(a2.toString());
	}
}
